﻿@model SelectList

@{
    ViewBag.Title = "Index";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}


@using (Html.BeginForm("Index", "Language", FormMethod.Post, new { id = "TheForm" }))
{
    
    @Html.DropDownList("selection", Model, "--Select one--", new
{
    onchange = "document.getElementById('TheForm').submit();"
}) 
}